PEP8 fixes and refactored note_number and set_scale