Finalize function rx_copy with doc and unit tests
Fix python env variable in before_install