Frequency Distribution Python Code Generator