Call python functions in a fork