Besides Tkinter, we will use a few standard Python libraries. The next import should execute without any error as they are built-in in most Python distributions:
import json, collections, functools, math
In addition, we use simpleaudio, which is a module that lets us play notes on the piano.
You can install simpleaudio using the following command:
pip3 install simpleaudio