improved python graph api