Fix crash and bug, PEP8 compliance.
	modified:   scripts/add_new_provider.py