Use wraps() for @transitioned methods
Fix minor problems detected by pyflakes