Change old style exceptions to modern style
Changed scatter 'type' to 'marker'
Python 3 compatibility.