separate cli and python script