Fixed non-interactive pylab plotting setup in common.py