Add URL parsing functionality that is Python 2 & 3 Compatible

- Used for AMQP URL parsing
Add docstrings