Correct whitespace: no mixing tabs and spaces

This is a relatively minor python fix, but it is frowned upon to mix spaces and tabs.  I've therefore correct all tabs to be 4 spaces.