Added wrappers for Python2.6 compatibility.