1. Why is it so complicated? `vm_state.UP` is a string object, you could have simply put `{"status": vm_states.UP}`. 
2. You should also consider renaming `"status"` to `"state"` or `vm_states` module to `vm_status`, otherwise the names are confusing.