Python code for a system to allow novices to make music