Check for c and python format flags