Fixed/added support for per-instance memoize, other python3 cleanup. refs #69