using robot library functions instead of subprocess