Fixed the create_local_settings script.

Moved and create_settings from __main__ to utils.main