Python Functions and Command Lines