pep8 and @memoized

(This was from saturday when I was going through the code.)