make it run on python2 (pypy)

- bytes() is an alias of str() in py2 orz
move to pypy

use buffered I/O
Merge branch 'master' into test

Conflicts:
	hw3.py