fix python script: add check for empty input