A simple Python grade system