def create_address(self, wallet_id, chain=0):
        """

        :param wallet_id: the wallet id :P
        :param chain: 0 for main or 1 change
        :return:
        """
        create_url = "%s/wallet/%s/address/%s" % (
                self.url,
                wallet_id,
                chain
            )

        r = requests.post(create_url, headers={
                'Authorization': 'Bearer %s' % self.access_token,
            })
        if r.status_code != 200:
            raise BitGoError('unable to create address\n %s' % r.content)
        data = r.json()
        return data['address']
def create_address ( self , wallet_id , chain = 0 ) : create_url = "%s/wallet/%s/address/%s" % ( self . url , wallet_id , chain ) r = requests . post ( create_url , headers = { 'Authorization' : 'Bearer %s' % self . access_token , } ) if r . status_code != 200 : raise BitGoError ( 'unable to create address\n %s' % r . content ) data = r . json ( ) return data [ 'address' ]
:param wallet_id: the wallet id :P
        :param chain: 0 for main or 1 change
        :return: