Add some module loading exception handeling
PEP8 fixes