Fix #648862, invalid no local variable warning
Fix #648862, invalid no local variable warning

When using locals() in global scope, there was a spurious warning
about No local variable.
So when we are checking the main code, set the unused locals to the global names

smspillaz/pychecker,smspillaz/pychecker,smspillaz/pychecker