Always generate ask_generated.py with set([]) notation

In Python 3, repr(set) uses {} notation, which is not compatible with Python
2.6.

This also sorts the entries of the sets, so that running ask_update.py without
any changes should always result in the exact same ask_generated.py.