Fix URL parsing of BONSAI_URL

Addressing comments in #42, this fix uses `urlparse` to parse out the `BONSAI_URL` instead of Python's `partition` method. Minor change.