class URL(object):
    """encode/decode requested URL"""

def __init__(self):
    self.charset = (
        '/abcdefghijklmnopqrstuvwxyz-ABCDEFGHIJKLMNOPQRSTUVWXYZ_0123456789.')

def encode(self, url):
    pass
How to decode encodeURIComponent in GAE (python)?