python earlier than 3.0 requires indices to be specified with format