Update python format for cockpit