experimenting with generation python code