Made all 2 space  tabs in Python API 4 spaces to meet PEP8 standards