added python functional tests