def namespaces(labels):
    """
    Converts fully-qualified names to a list of namespaces.
    namespaces(['clojure.core/map']) => ['clojure.core']
    """
    return list(map(lambda label: label.split('/')[0], labels))