corrected some PEP8 stuff working on getting templates working better