def parse_software_uuid(s):
    """parses '/software/lalala/' or '/software/lalala' into 'lalala'
    if input is already 'lalala', returns 'lalala' as well.
    if something else, returns None
    """
    ss = s.split('/')
    if len(ss) == 4 or len(ss) == 3:
        return(ss[2])
    elif len(ss) == 1:
        return(ss)
    else:
        return(None)