Yeah, sorry, no monkey-patching allowed. It's just not part of the deal when you import a library in Python.

Since the whole point of this code is to activate one line of code that says:

```python
url, fragment = url.split('#', 1)
```

why not just add that to our `urlparse()` wrapper as a post-processing step. Something to the effect of:

```python
if allow_fragments and not fragment and '#' in path:
    url, fragment = url.split('#', 1)
```