pep8 cleanups
fix append not defined bug.