Ran autopep8 on all python scripts.

Fixed problems with tab inconsistency.