python and raphael code