fixed bug
pep8 fixes to test_timerange