pep8 and @memoized

(This was from saturday when I was going through the code.)

I've tested this cursorily on staging.