<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_locales(self, package_name):
 """ Retrieve a list of all available locales in a given packagename. :param package_name: the package name to get locales of """

        self._analyse()
        return list(self.values[package_name].keys())