refactor _type_desc setting
use re.sub instead of if statement
add check on length of "l" like below
consolidate class name mangling
move truncated_name usage closer to definition
refactor short/long arg name parsing
make a self contained external function parse_opt_strs