inverted half pyramid pattern in python