Merge pull request #700 from josef-pkt/bugs_rebased

Bugs rebased closes #535
tools/check_dirs print only dirs with .py files
ENH: compat add collections.Counter
STY: various pylint cleanups (for moment_helpers see #703)
REF/STY: qsturng rename: same module and function name