Python check if package is installed command line