seperated replace statements in hash to make things more os-agnostic

When using 
        if hash != None: hash = hash.replace('\r\n', '')
This does not distinguish between windows and unix environments, to be able to use a hash on a unix environment you can separate the replace statements to catch both carriage returns and newlines with no penalty:
      if hash != None: hash = hash.replace('\r', '').replace('\n', '')