allow enums with a lot of labels by passing them as a list

otherwise very long enums might cause a `SyntaxError: more than 255 arguments`