Python API: Add enum and union support.