fixed #38. start to support py3
removed unused 'time'
added test4 target in Makefile