Update custom application example.

It's running on both Python 2 and 3 now.
yeah, probably better to have `config = dict(tmp_config)`