Update PpmImagePlugin.py

Bug fix when locale has not been set