Implement write_field

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Another attempt to fix travis

Signed-off-by: David Scott <dave.scott@eu.citrix.com>