screenlock

try screenlock.lock() ad screenlock.unlock() without error