print 'Initalizing gyro...'

import time

from Adafruit_BNO055 import BNO055

bno = BNO055.BNO055(rst='P9_12', busnum=2)

def handleSpaData():
    pass

def sendData():
    time.sleep(1)
    heading, roll, pitch = bno.read_euler()
    sys, gyro, accel, mag = bno.get_calibration_status()
    return 'H{0:0.2F},R{1:0.2F},P{2:0.2F},S{3},G{4},A{5},M{6}'.format(heading, roll, pitch, sys, gyro, accel, mag)
 
def init():
    if not bno.begin():
        raise RuntimeError('Failed to initialize BNO055! Is the sensor connected?')

    print "Initialization success!"

init()
while True:
    print sendData()

@@ -4,16 +4,17 @@
 nt 'Init
+i
 alizing 
@@ -560,45 +560,4 @@
 s!%22%0A
-%0Ainit()%0Awhile True:%0A    print sendData()%0A

Remove hawkward debugging code