<human>:  Python - Access object attributes as in a dictionary
<bot>: Here is some code to get attribute `my_str` of object `my_object`

getattr(my_object, my_str)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.