Untangle randomfiles db query pleases pypy?