Python Encode Url String Length