'Returns the first unused address.'

@command('w')
def getunusedaddress(self, force=False):

    addr = self.wallet.get_unused_address()
    if ((addr is None) and force):
        addr = self.wallet.create_new_address(False)
    if addr:
        return addr
    else:
        return False
