fix bug from facebook sdk for python