added the python script for KL methods

@karlnapf 
take a look at this.
line breaks also