py: Small simplifications in tuple and list accessors.