For a long time i have been trying to figure out what is the best way to pass flags to python functions. The most straightforward way is something like:
def some_func(data, *args):
# do something
return args # this is just to show how it works
>>> print some_func(12, 'test', 'test2', 'test3')
('test', 'test2', 'test3')
This is a good question to understand how *args and **kwargs work : *args and **kwargs?