create hashmap from dictionaries python