add print filename of failed task
add test for `as` syntax in excepthandler
fix patchedast to match `as` token in excepthandler