kate -> emacs
Minor fixes
Don’t use pylab
More small fixes
Added missing imports, updated data file