fixed handling of list input to argparse
fixed handling of double None in headtailtrunk