Can save homomorphisms to file

need to check from_file is an inverse