Bottle.py patch to work properly with Cork