generate music programmatically using Python