Graph api in python