Edited Python DEF

added comments