get the next version

def increment_version(version):
    """ get the next version """

    parts = [int(v) for v in version.split('.')]
    parts[-1] += 1
    parts.append('dev0')

    return '.'.join(map(str, parts))