Would you mind making this a staticmethod of MakePykeRules and removing the whitespace after the docstring?

After that, I'll merge :wink: