[test] added python script for the R^4 to R^3 test