Turn socat2json into a Module to be imported to other scripts