python tourist solution