don't assign allow_interrupt.__doc__

set it in class definition,
because assignment isn't allowed on py2