Fixing the examples for Py3 compatibility

Should have got most of them. 

Not sure with the list(map()) stuff but couldn't think of a nice way to make it work.