Changed the spatial sovler python api dictionary checking module to use assertion errors instead of lengthy if statement checking