added init and write_data to lcd.py