Liberty Parser Python W3schools Exercise