removed exit from flock Python version to match Perl