Adapt to new pyflakes version, RedefinedFunction -> Redefined
Fix commands by implementing run() methods for each instead of run_()

It seems safer to use run() instead of run_(), which is internal to Sublime and
handles the begin_edit/end_edit chores.
Apparently, set_scratch expects a boolean