Added context manager in PacketRegister so that all file operations are first operated on temporary files that are only copied if the process is sucessfull.
Added context manager in PacketRegister so that all file operations are first operated on temporary files that are only copied if the process is sucessfull.

baffelli/pyperator,baffelli/pyperator