use python3 print syntax here too
note about the locking