Fix python attribute not found exception when PYTHONPATH is not set