Changed from \t to spaces as typical python code goes and minor code change