def clean_keys(d):
    new = {}
    for k, v in d.iteritems():
        if isinstance(v, dict):
            v = clean_keys(v)
	if isinstance(v, list):
	    for idx,i in enumerate(v):
		if isinstance(i, dict):
       		    v[idx] = clean_keys(i)	
        new[k.replace('.', '-').lower()] = v
    return new
replace all "." with "-" and force keys to lowercase
dataset/ETHPy150Open HumanDynamics/openPDS/openpds/connectors/funf/views.py/clean_keys