make partition return lists in Python 3

filter returns a filter object in Python 3