fix filecache for python3