Adding to_dict() to measure
Addint to_dict() to Device class
Creating a __init__.py file to the code be used as a module