>    This line copies the (empty) self.my_map into my_map...

Indeed. Good catch. Fixed.