call iric_check_lock_f(filename, locked)
iRIC_Check_Lock(filename, locked);
This function does not exists for Python.