python format dict into string