keylime_ima_emulator incorrectly parses token from ascii_runtime_measurements
# Environment
 * OS / version: Fedora 29
 * Processor architecture:  N/A
 * TPM Manufacturer: emulator
 * Keylime version:  master

# Description 

When running the keylime_ima_emulator service, some lines of `ascii_runtime_measurements` are incorrectly split.

`Feb 27 16:59:43 localhost.localdomain tpm_with_ima.sh[11418]: ERROR: invalid measurement list file line: -7ec02e /usr/bin/ping-`

`cat /sys/kernel/security/ima/ascii_runtime_measurements |grep ping
10 4b0fdc36d52e6a084ecd9600511eb1b8899e0f66 ima-ng sha1:d1703bf9c9d7094c0e9aacb634002ffa447ec02e /usr/bin/ping
`

This is from the following code:

https://github.com/keylime/python-keylime/blob/aa2b55aba7eab9924b3b0f23cd07bbf726ef30ac/keylime/ima_emulator_adapter.py#L41-L49

## Expected behavior vs. actual behavior 

## Steps to reproduce problem
1.  Run  keylime_ima_emulator against the following list:

https://paste.fedoraproject.org/paste/RggKZQRNMbL2qCWTrmqisA



diff --git a/keylime/ima_emulator_adapter.py b/keylime/ima_emulator_adapter.py
index 913b325..16c12ec 100644
--- a/keylime/ima_emulator_adapter.py
+++ b/keylime/ima_emulator_adapter.py
@@ -24,6 +24,7 @@ import common
 import select
 import time
 import hashlib
+import itertools
 from tpm_abstract import *
 import tpm_obj
 
@@ -33,9 +34,7 @@ tpm = tpm_obj.getTPM(need_hw_tpm=True)
 def ml_extend(ml,position,searchHash=None):
     f = open(ml,'r')
     
-    f.seek(position)
-    rest = f.read()
-    lines = rest.split('\\n')
+    lines = itertools.islice(f, position, None)
     runninghash = ima.START_HASH
     
     for line in lines:
@@ -47,6 +46,7 @@ def ml_extend(ml,position,searchHash=None):
         if len(tokens)<5:
             print "ERROR: invalid measurement list file line: -%s-"%(line)
             return position
+        position += 1
         
         # get the filename roughly
         path = str(line[line.rfind(tokens[3])+len(tokens[3])+1:])        
@@ -63,14 +63,13 @@ def ml_extend(ml,position,searchHash=None):
         else:
             runninghash = hashlib.sha1(runninghash+template_hash.decode('hex')).digest()
             if runninghash.encode('hex') == searchHash:
-                position = rest.index(line)+len(line)
                 print "Located last IMA file updated: %s"%(path)
                 return position
     
     if searchHash is not None:
         raise Exception("Unable to find current measurement list position, Resetting the TPM emulator may be neccesary")
     
-    return position+len(rest)
+    return position
 
 
 def main(argv=sys.argv):
['keylime/ima_emulator_adapter.py']