Remove pandas dependency from example

Using matplotlib’s csv2rec function instead.

Also made sure the file is pep8 compliant.