Call python data functions from C