Modify order of arguments in the constructor

All the tests pass now!

I also cleaned up some of the repeated imports in test_table.py 

Thanks for the help @ElDeveloper