cannot convert string to int python, virtual piano trainer