regenerated from python script and made script more readable