Does Python allow to open files in shared mode like fsopen or _open do? If not how to make it happen?