Fix tab vs. space error

Current code doesn't run in python3 because of the tab.
Merge pull request #2199 from lucasb-eyer/patch-1

Fix tab vs. space error