If you use a script like that for GAuth, make sure to use it on a separate machine from the one you use to log in, otherwise you may still lose your account if your machine is compromised.
... and this is exactly why I do not like this at all. I still need to have 2 or more computers.