Python Code for LCD