Update comper.py

Finally fixed program. Uses pure python without any outside modules.