Edit make_frame_cache to be Python 3 compatible and fix problem in #160 (closed).
make_frame_cache
cc @karl-wette @david-keitel @adam-mercer