Update table.py
Update table.py

This propose is based on issue #133. Added 'ensure_session' global variable as a default value for 'ensure' parameter.

I haven't used Python for a long time and I can't test this code for now. I'm sorry for my irresponsibility, but here is a rough idea as a solution.
stefanw/dataset,saimn/dataset,pudo/dataset