Karnaugh Map Method In Python Class