<p>I voted to migrate this question after some thought and reviewing the comments; this was not a clear or automatic case.  I ultimately relied on the original text to make the decision for me: it explicitly asks for a Python solution and the OP takes pains to intimate that he could program the algorithm himself, but wishes to avoid it.  That was a sufficiently clear indication that this is a pure programming question and leaves me comfortable with the decision. At this point it's out of our hands: you would need to appeal to the SO mods either to reject the migration or migrate the question back here. You ought to wait for clarification from the OP first.</p>
