added python rbf functions