code from http://www.raspberrypi-spy.co.uk/2012/07/16x2-lcd-module-control-using-python/
fix gpio warnning