filter() doesn't return a list in Python 3

In Python 3 filter() returns a iterable filter object, next() returns the first item, without this patch the Paypal backend causes this error: TypeError: 'filter' object is not subscriptable