Moved check for request package.

I was checking whether the request package was installed _after_ requiring it. require now comes after installing the package.