Arduino Input Output Functions In Python