Adds an 'enum' type for ask()
Creates subdirectories for namespaces
Fixes an encoding bug in Python

Redirecting stderr to a file could cause crashes, because Python tries
to guess the encoding to use for the output (and then just uses ascii
for some reason).