import os def device_error(): print( """ The device you are running on is not currently compatible. Please use a suitable device. The current suitable devices are: - Raspberry Pi 4 """ ) os._exit(1) quit() def argument_error(data, datatype): print( """ Invalid data type {} for {} """.format( data, datatype ) ) os._exit(1) quit()