works for test case 1 and 2, no error checking
Merge branch 'master' of https://github.com/strandx/python