Just drop gmail.py and gmail.activity inside ~/.sugar/activities
Then run sugar as usual.