Fix a Python 2.7 issue with webhooks containing custom URL regex

Closes #116