Given a piece of code like this:
aaa = bbb()
ccc.ddd().eee(fff(foo))
ggg(bar)
hhh().iii
I would like to get something like this:
['bbb', 'ccc.ddd.eee', 'fff', 'ggg', 'hhh.iii']
I'm aware of the visit_Call and visit_Name methods, but I can't get them to return only function names or function names with functions called on objects returned by those functions (like foo().bar()).