phantomjs.py: Fixes to use tornado.gen.Return.