Py3 compat for memoized_method