code cleanup: changed tabs to spaces and all indent to 4 spaces regarding to PEP-8)