made InMemoryFile extend file to keep bc with any typehinting using the file class