Why are you deleting this whitespace? (See also lines 5, 13, 28.) There are supposed to be two blank lines between classes, per PEP8,

    Separate top-level function and class definitions with two blank lines.