Fixes a clerical error in #7: "self" should be "cls"

Fairly self-explanatory: I botched an invocation of `self` in #7 that got covered over by mocks during testing.

Fixes master. We should consider more deeply testing the function I broke in the future, but patches things up for now.