Use Python for fixdialectc script

Convert fixdialectc from Ruby to Python to avoid the otherwise unneeded
dependency to the former.

Signed-off-by: Pekka Enberg <penberg@iki.fi>