cleaned up some pep8 warnings, fixed preprocess JSON issue (ISSUE#1)