A lot of these functions were copied verbatim from lock.py which I did not originally write. I have used both ways to do comments by keeping the style of the existing coding. I will update these to use the new format.