from Orientation import Orientation from UltraSonicSensor import UltraSonicSensor sensor = UltraSonicSensor() value = sensor.getReadings() orientation = Orientation() orientationData = orientation.getOrientation() orientationData.append(value) print orientationData
from UltraSonicSensor import UltraSonicSensor sensorLeft = UltraSonicSensor(17, 27) valueLeft = sensorLeft.getReadings() sensorRight = UltraSonicSensor(8, 7) valueRight = sensorRight.getReadings() print [valueLeft, valueRight]