update: pyflakes: remove duplicate function