the URL parsing in https://github.com/sebastien/watchdog/blob/master/Sources/watchdog.py#L868 is not very "pythonic".
there's a very nice module in the Standard Library for this: urlparse
that was one of the patches I wanted to work on, but I haven't got time yet. If someone wants to convert this series of "splits", please, hack on. :op
(and if nobody does, I may eventually find time)