Updated pyflakes script to skip method redefinition warnings in submodels