class PlanetAPI(object):


    class v1(object):

        def yearlength_GET(self, request, params):
            planetName = params['params']['name'].lower()
account_num = params['params']['account_num']
supplying variables to class dynamically