Upgraded pyserial to 2.7 and made library python 3.x compatible