Python unlock