Petanque game in Python