make browser.py python3 compatible

stays python2 compatible, of course.
Merge pull request #10 from konradvoelkel/patch-1

make browser.py python3 compatible