This code was written in 2017 and has worked since - all of a sudden it is giving me a syntax error... I can\'t seem to see the problem. Sorry I realize its a lot of code...