autopep, made function to generate data dynamically