Python - Access object attributes as in a dictionary,"getattr(my_object, my_str)"