<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def censushistory(self, *scales):
 """Historical World Census data. Was split into its own method for the sake of simplicity. By default returns data on today's featured World Census scale, use arguments to get results on specific scales. In order to request data on all scales at once you can do ``x.censushistory(*range(81))``. Returns data for the entire length of history NationStates stores. There is no way to override that. Parameters scales : int World Census scales, integers between 0 and 85 inclusive. Returns ------- an :class:`ApiQuery` of a list of :class:`CensusScaleHistory` """

        params = {'mode': 'history'}
        if scales:
            params['scale'] = '+'.join(str(x) for x in scales)

        @api_query('census', **params)
        async def result(_, root):
            return [
                CensusScaleHistory(scale_elem)
                for scale_elem in root.find('CENSUS')
            ]
        return result(self)