data = """
rules: evdev
model: pc105
layout: us,ru
variant: ,
options: grp:alt_shift_toggle,grp_led:scroll
"""
dict((a, b.strip()) for a, b in
(item.split(":") for item in
data.splitlines()))
d = {}
for x in data.splitlines():
x = x.split(': ')
if x[0]: d[x[0]] = x[1]
print d