updated filter for python26