Fixed issue with python code bieng buggy (problems with spaces vs tabs in indentation)