From IRC, I'm going to fix this to use enums in both the Python and PostgreSQL case.