Switch to oslo.serialization

Change-Id: I983bb5b6e2c7fbbd8556ff0f99212803cb0269e9