In python3 types.MethodType constructor changes