def METHOD_NAME(self, mastertoken):
    """Check if current MasterToken is newer than mastertoken specified"""
    # Based on cadmium player sourcecode and ref. to [isNewerThan] in:
    # https://github.com/Netflix/msl/blob/master/core/src/main/java/com/netflix/msl/tokens/MasterToken.java
    new_tokendata = json.loads(
        base64.standard_b64decode(mastertoken['tokendata'].encode('utf-8')).decode('utf-8'))
    if new_tokendata['sequencenumber'] == self.sequence_number:
        return new_tokendata['expiration'] > self.expiration
    if new_tokendata['sequencenumber'] > self.sequence_number:
        cut_off = new_tokendata['sequencenumber'] - pow(2, 53) + 127
        return self.sequence_number >= cut_off
    cut_off = self.sequence_number - pow(2, 53) + 127
    return new_tokendata['sequencenumber'] < cut_off