python: Factor out lib_cellar