Most Difficult Python Program