simple script generator in python