[python] log functions after they have been created