The following code in python2.6 throws syntax error
>>> def f(a,*args,c):
File \"\", line 1
def f(a,*args,c):
^
This feature of the Python 3 compiler has not been backported to Python 2.x.
There is no magic from __future__ import
switch to enable it, your only option is to upgrade to Python 3.x.
Your second function could instead be defined as:
def (a, *b, **kwargs):
c = kwargs.pop('c', 5)
to be Python 2 compatible.