Don't run analyses when the update is not finished
Fix some pyflakes issues