fix code to match test
remove unused import
pep8 fix
fix imports

METRICS needs to be defined in yadtreceiver before it import the protocols
module. argl :/
tests for the protocol to write metrics
implement writing metrics in the ProcessProtocol