Helper functions for converting python objects into hbase keys and values.