Add Lock() Unlock()
Fix path handling
Use os.path.join()