[python-meh] Filter local variables in a nicer way and fix docstring