pep8ified it a bit....still a lot of issues to be discussed

this mostly fixes indentations and spaces around operators. your IDEs should be set to use four spaces as indentation.