Create gen.py

the python script for the option '-printf' of the command 'find' in the linux