I had the arguments for switchDateRange reversed, dateRange should be the second argument
Now our error checking ifs at the beginning of the main functions will detect if they're None and the Interperter shouldn't trackback when neglecting to add arguments