for `py3` (the travis failure), change this to `list(format_reg.fileobjects.keys())`