updated main.py, fixed csv problems
Working version of Python script