Change maxtask function in testscript to return at most 20
Fix 2 spaces -> 4 spaces, add max range
Extra newline... pep8