typo
use metrics module and pep8