Fixed single backticks to double backticks for non-literals
Fixed & to and
Fixed read_lockfile for Python 3.x