I\'m using python pyoo package to work with libre office sheets using this code
soffice --accept="socket,host=localhost,port=2002;urp;" --norestore