Probably fixing print causing opening files failing if no terminal in use.