updated tests and test files
fixed tabs/spaces errors and print syntax
s/iteritems/items/ in sprot.py