Tidied up pyctools-setmetadata command