python format + regexp = scary