KeyLock-Python extension that allows access to the Key Lock API which is available on all Symbian editions. It allows getting/setting the lock state (the latter with or without user notification), or to popup a note asking the user whether the device should be locked.
Note: On 3rd edition phones Python extensions need to be signed using the same certificate and the same capabilities as the Python SIS file itself. If signed differently or using different capabilities, installation will work but you'll get KErrAccessDenied errors at run-time.