fix whitespace errors

I was looking the source and I saw mixed tab and spaces for the indentation. It's better to avoid mixing them so I converted everything to spaces as it is the recommended style in [PEP8](http://www.python.org/dev/peps/pep-0008/#tabs-or-spaces)

You can configure your editor to use spaces when hitting the Tab button.