add requirement
pep8
replace print statements for py3/ST3 compat