Changed around pi.py and improved pi_test.py. Updated readme.