proxy: Workaround for threading lib bug

In order to avoid an exception from the threading library (due to a bug,
fixed in Python 3.3), we should make sure to call patch_thread() before
threading gets imported (it is first imported by the logging module, in
proxy.py) [1][2].

[1] http://bugs.python.org/issue1596321
[2] http://stackoverflow.com/questions/8774958/keyerror-in-module-threading-after-a-successful-py-test-run
Add console_script entry point for client