Fixes to find_api_page function

this contains a py3.x fix to the `utils.misc.find_api_page` function, and an option for passing in a timeout.  These were partly uncovered by #734, although they won't necessarily be tested here, given that the ``--remote-data`` option is not yet in the tests.  (It does pass locally for me, though)