convert list to literal string python