make browser.py python3 compatible

stays python2 compatible, of course.