hstore parsing and manipulation in python