from gi.repository import Rsvg

data = open("/usr/share/sugar/activities/TurtleArt.activity/images/nocode.svg", "r").read()
handle = Rsvg.Handle.new_from_data(data)

print handle
d = handle.get_dimensions()
print d, d.width, d.height
p = handle.get_pixbuf()
print p, p.get_width(), p.get_height()
