Fix unreliable default settings handling.

Now use a auto-genearated default setting instead of
hard writting them in the python source.

Fix #47