Python for reading data from COSMOS sensors