Python Redirect Url Code Generator