Python pattern n2