core & Filter & Owner: Fix Python 2.6 compatibibility.