enums: write method code first to fix syntax errors in combination with setattr hacks for members which start with a digit