make browser.py python3 compatible

stays python2 compatible, of course.
This was necessary for me since Ubuntu 14.04 packages PyQt5 only for Python3.