pbs usage in pyfile
better family inference