See the Bazel core py_library documentation.
available here.
See the Bazel core py_binary documentation.
See the Bazel core py_test documentation.