Fixing matplotlib.pyplot usage when  is not defined
Fixing typo and script permissions
Fixing variable name
Merge pull request #8 from josenavas/pyplot_fix

Fixing matplotlib.pyplot usage when DISPLAY is not defined