Split functionality to pacakge py and rename job