Formatted Previous_versions/formattingForMallet.py according to pep8

Used the comandline tool pep8 to find most of the formattations errors.
However I did not fix all of the ones caused by line length. This will need
more work on the code structure because of the deep nestling of the code.