Create localization.py

successful submission for Localization Program from Problem Set 1.