python script to generate files for arduino