Some fixes in the r.hsm2lcp.py script

  Please enter the commit message for your changes. Lines starting