(precompile) Fixed handling of directory and .pyc file inputs in {obj}srcs when {obj}precompile is enabled on {obj}py_library, {obj}py_binary, and {obj}py_test targets (#4113).