Python 3: use __name__ instead of func_name
Python 3: make sure {}.keys() is a list
Python 3: make sure filter() returns a list
Python 3: make sure range() returns a list
Python 3: use method.__self__ instead of .im_self