for d in look_in:
    for k, v in list(d.items()):
        if v is obj:
            yield k

def main():
    a = 'heybaberiba'
b = a
c = b
print(list(find_ref_names(b)))
if __name__ == '__main__':
    main()
Can I get a list of the variables that reference an other in Python 2.7?