require python 2.7
use repo name as its upstream
use python as fallback when now shuf util avail
add function for mirror file