Convert tabs to 4 spaces

Somebody changed the spaces to tabs, so I am changing it back to spaces. We
should not use tabs in Python.

Also, use 4 spaces for indentation in bash. Now the while and if statements are
nicely aligned as they should be.
Merge pull request #184 from hashdist/tabs

Convert tabs to 4 spaces