<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def current_vote_value(self, **kwargs):
        ''' Ensures the needed variables are
        created and set to defaults although
        a variable number of variables are given.
        '''
        try:
            kwargs.items()
        except:
            pass
        else:
            for key, value in kwargs.items():
                setattr(self, key, value)
        try:
            self.lastvotetime
        except:
            self.lastvotetime=None
        try:
            self.steempower
        except:
            self.steempower=0
        try:
            self.voteweight
        except:
            self.voteweight=100
        try:
            self.votepoweroverride
        except:
            self.votepoweroverride=0
        try:
            self.accountname
        except:
            self.accountname=None              
        if self.accountname is None:
            self.accountname = self.mainaccount   
        if self.check_balances(self.accountname) is not False:
            if self.voteweight > 0 and self.voteweight < 101:
                self.voteweight = self.util.scale_vote(self.voteweight)
            if self.votepoweroverride > 0 and self.votepoweroverride < 101:
                self.votepoweroverride = self.util.scale_vote(self.votepoweroverride) 
            else:
                self.votepoweroverride = (self.votepower 
                                + self.util.calc_regenerated(
                                self.lastvotetime))
            self.vpow = round(self.votepoweroverride / 100, 2)
            self.global_props()
            self.rshares = self.util.sp_to_rshares(self.steempower, 
                                            self.votepoweroverride, 
                                            self.voteweight)
            self.votevalue = self.rshares_to_steem(self.rshares)
            return self.votevalue
        return None