Added generators to mimic the real python's dict interface