How to convert a list to tuple in python?