Create localize.py

threaded version of localization script