updated the check_python_lib()