Output for matplotlib is modified so that output files are executables in python 2