[sanlock] 11/14: python: Streamline hosts_to_list