Update pyd3v.py

Thought it might be a good idea to make sure that the input file actual exists too... Also added error tracking variable to catch if a loop-breaker caused a problem.