from connection import ArduinoSlave conn = ArduinoSlave() class AcusticSensor: def __init__(self): pass def start(self): if not conn.isConnected(): conn.open() def calibrate(self, x, y): pass def read(self): return (0, 0) class MagneticSensor: def __init__(self): pass def start(self): if not conn.isConnected(): conn.open() def calibrate(self, x, y): pass def read(self): return (0, 0)