added q3.py

about drawing bar and pie images