correction of python bug 20140909