Support op_locks and write_lists
Merge pull request #25 from ngiger/master

Support op_locks and write_lists