Learning python by example