Python Url Safe String Functions