def dstfetch(yrstart, mostart, yrstop, mostop):
    """
    A function to fetch Kyoto Dst directly from the Kyoto WDC website.
    Returns raw ascii lines.
    """
    try:
        import urllib.parse, urllib.request
    except ImportError:
        import urllib
        urllib.parse = urllib
        urllib.request = urllib
    forminfo = {}
    forminfo2 = {}
    if yrstart - 2000 >= 0:
        forminfo['SCent'] = 20
    else:
        forminfo['SCent'] = 19
    forminfo['STens'] = int(('%d' % yrstart)[2])
    forminfo['SYear'] = int(('%d' % yrstart)[3])
    forminfo['SMonth'] = '%02i' % mostart
    if yrstop - 2000 >= 0:
        forminfo['ECent'] = 20
    else:
        forminfo['ECent'] = 19
    forminfo['ETens'] = int(('%d' % yrstop)[2])
    forminfo['EYear'] = int(('%d' % yrstop)[3])
    forminfo['EMonth'] = '%02i' % mostop
    email = urllib.parse.quote('spacepy@lanl.gov')
    target = ('http://wdc.kugi.kyoto-u.ac.jp/cgi-bin/dstae-cgi?' + 
        '%s=%2i&%s=%i&%s=%i&%s=%s&%s=%2i&%s=%i&%s=%i&%s=%s&' % ('SCent',
        forminfo['SCent'], 'STens', forminfo['STens'], 'SYear', forminfo[
        'SYear'], 'SMonth', forminfo['SMonth'], 'ECent', forminfo['ECent'],
        'ETens', forminfo['ETens'], 'EYear', forminfo['EYear'], 'EMonth',
        forminfo['EMonth']))
    target = (target + 'Image+Type=GIF&COLOR=COLOR&AE+Sensitivity=0' +
        '&Dst+Sensitivity=0&Output=DST&Out+format=WDC&Email=' + email)
    f = urllib.request.urlopen(target)
    lines = f.readlines()
    return lines
