Python argument list manipulation