Add flags to the context init function and use them to give hints to the function.
Update the python binding with respect to the new API.