Enum → IntEnum, fixed syntax errors.
Made file_communicator slower, but hopefully more robust. Rigol almost works.