organised python files
replace router code for router library