A thrift lib in erlang