Fixing NameError bug that references class attr without self.
Merge pull request #17 from dhermes/fix-bad-reference

Fixing NameError bug that references class attr without self.