Update piano.py

Just small little things to minimize repetition and using 'long ways' of doing something ( eg i = i + 1 - when you can use the (+=) operator )