import re
input = '1:3.0 false,hello'
a, b, c, d = [t(s) for t, s in zip((int, float, bool, str), re.search(
    '^(\\d+):([\\d.]+) (\\w+),(\\w+)$', input).groups())]
print((a, b, c, d))
sscanf in Python