Small utility library for apache spark