Backtracking Algorithm Python Example Main Verb Definition