make compatible with Python 2 and 3

Installed fine using Python 3.4 on Windows, and imports well using `%reload_ext soup` in IPython notebook.
I decided to make it `global` so it could be utilized in all the functions without having to be explicitly passed to them. If you think there's a better way to do it, feel free to change it.