Closes SF bug 527139.  Moved temp variables inside guard.
Closes SF bug 527139.  Moved temp variables inside guard.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator