Update toa.py

Corrects two bugs: the first given by using "is" instead of "==" to compare a variable and a string, and the second given by using the attribute "tdb" for an astropy column instead of the times it contains.