Handle changes to try and except for Python 3
Update some Python samples
Fix ifilter use for Python 3
x.next() -> next(x)
Compare sets instead of sorting lists