Adding Python compatibility.