python27: fix http://bugs.python.org/issue19561