def _debug(s):
    """
    It's pretty hard to debug with all the threads running updates constantly...
    remote-pdb is the best solution besides some debug log hackery.
    """
    with open('debug.log', 'a') as f:
        f.write(s + '\n')
