pass list to string.format python