<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def normalise_key(self, key):
 """Make sure key is a valid python attribute"""

        key = key.replace('-', '_')
        if key.startswith("noy_"):
            key = key[4:]
        return key