Python API for selecting licenses and retrieving metadata