Bug fixes for python 3, FileNotFoundError, and settings import error