Update localize.py

Separated the testing code from the meat