Context-Specification testing in Python