How To Define Machine In Python