Helper libraries for working with Erlang ports