Put entrypoint code inside def main()
smeterd module is now setuptools entry_point compatible