test added to example
generated python code documented