Corrected PEP8 violations and removed extraneous imports to Stanford specific functions.