updated paint.py