Add a python version of checkData.pl, minor fixes for handling auth failures