fixing pyplot.py generating boilerplate code to avoid unicode strings