Use an empty key for parent values in python