Some of PEP8 aplied.

There is stil a lot of non PEP8 code, which will be fixed later.