Python 3 compatibility patch provided.