[Disclaimer: I don't read Python, but I <i>think</i> the question here is "Which methods from this list does this object implement?"  If I'm wrong please correct me.]<p>My gut check was this should take about eight lines, plus imports and the class boilerplate.  Let's try:<p><a href="http://www.pastie.org/808727" rel="nofollow">http://www.pastie.org/808727</a><p>Yep, eight.<p>[Edit: It occurs to me the Python code might answer "Does this implement all specified methods?"  That also takes eight lines in Java.  I've appended the implementation above.]