def new_address(self, sender=None, nonce=None):
if sender is not None and nonce is None:<EOL><INDENT>nonce = self.get_nonce(sender)<EOL><DEDENT>new_address = self.calculate_new_address(sender, nonce)<EOL>if sender is None and new_address in self:<EOL><INDENT>return self.new_address(sender, nonce)<EOL><DEDENT>return new_address<EOL>
Create a fresh 160bit address