pass slugified command to _get_handle_mapping
Don't split user and host. Also pep8.