python convert list to string literal