added the python script

@karlnapf 
take a look at this.
this is a bit off-topic, but it would be great if you could make sure the CrossValidation framework works with your methods. In fact, I even suggest a unit test for this