update README, fixed magpi.py code