converted tabs to spaces
fixed some indentation from the tab conversion
fixed some indentation from the tab conversion
minor formatting changes to be closer to PEP 8
minor formatting changes to be closer to PEP 8