Add open_and_lock context manager for file
Removed unused import, made clearer some imports.
Renamed `open_and_lock` to `open_with_lock`
Merge pull request #31 from MarcCote/add_lock_contextmanager

Add a simple but efficient lock contextmanager