def _setup():
    global book
    filename = 'italienische-reise.txt'
    url = 'https://github.com/GITenberg/Italienische-Reise-Band-1_2404/raw/master/2404-8.txt'
    if (not os.path.isfile(filename)):
        if PY2:
            import urllib2
            furl = urllib2.urlopen(url)
            book = furl.read().decode('cp1252', errors='ignore')
            furl.close()
        else:
            import urllib.request
            with urllib.request.urlopen(url) as furl:
                book = furl.read().decode('utf-8', errors='ignore')
        with open(filename, 'wb') as fout:
            fout.write(book.encode('utf-8'))
    else:
        with open(filename, 'rb') as fin:
            book = fin.read().decode('utf-8')
def _setup():
    global book
    filename = 'italienische-reise.txt'
    url = 'https://github.com/GITenberg/Italienische-Reise-Band-1_2404/raw/master/2404-8.txt'
    if (not os.path.isfile(filename)):
        if PY2:
            import urllib2
            furl = urllib2.urlopen(url)
            book = furl.read().decode('cp1252', errors='ignore')
            furl.close()
        else:
            import urllib.request
            with urllib.request.urlopen(url) as furl:
                book = furl.read().decode('utf-8', errors='ignore')
        with open(filename, 'wb') as fout:
            fout.write(book.encode('utf-8'))
    else:
        with open(filename, 'rb') as fin:
            book = fin.read().decode('utf-8')