Switch to oslo.serialization

Change-Id: I24be947cfc2d9ce60e65054e6562e544b1e21195