Use StringIO instead of InMemFile