define the function format with 6 arguments: number, decimal_sep, decimal_pos set to None, grouping set to integer 0,
def format ( number , decimal_sep , decimal_pos = None , grouping = 0 , thousand_sep = '' , force_grouping = False ) :