Replace usage of strings as enum type with custom DynamicEnum class.
Replace usage of strings as enum type with custom DynamicEnum class.

DynamicEnum has a comparison function that allows comparison to strings
and ints, and will effectively make it interchangable with the old
implementation in most scenarios.

tempbottle/pycapnp,jparyani/pycapnp,SymbiFlow/pycapnp,tempbottle/pycapnp,rcrowder/pycapnp,rcrowder/pycapnp,rcrowder/pycapnp,jparyani/pycapnp,SymbiFlow/pycapnp,tempbottle/pycapnp,SymbiFlow/pycapnp,tempbottle/pycapnp,jparyani/pycapnp,jparyani/pycapnp,SymbiFlow/pycapnp,rcrowder/pycapnp