Fixed a python error when loading program without root privileges