import time
import spi_serial

if __name__ == "__main__":
    ss = spi_serial.SpiSerial()
	time.sleep(3)
	
    cmd = [1]
    ss.write(cmd)
    if ss.inWaiting() > 0:
       print(''.join(chr(k) for k in ss.read(0)))
    cmd = [2]
    ss.write(cmd)
    if ss.inWaiting() > 0:
       print(''.join(chr(k) for k in ss.read(0)))
    cmd = [8,1,1]
    ss.write(cmd)
    if ss.inWaiting() > 0:
       print(''.join(chr(k) for k in ss.read(0)))


import time
import spi_serial

if __name__ == "__main__":
    ss = spi_serial.SpiSerial()
    time.sleep(3)

    cmd = [1]
    ss.write(cmd)
    if ss.inWaiting() > 0:
       print(''.join(chr(k) for k in ss.read(0)))
    cmd = [2]
    ss.write(cmd)
    if ss.inWaiting() > 0:
       print(''.join(chr(k) for k in ss.read(0)))
    cmd = [8,1,1]
    ss.write(cmd)
    if ss.inWaiting() > 0:
       print(''.join(chr(k) for k in ss.read(0)))


Fix tab (change to spaces)
Fix tab (change to spaces)

Fixes:

$ python ExplorerTest.py
  File "ExplorerTest.py", line 6
    time.sleep(3)
    ^
IndentationError: unexpected indent