fix python 3 errors with inconsistant tab/space usage