[python] How to convert string representation of list to a list?