Add #29 Python solution