get_py_package_versions function

Get versions of python components