Update serv.py

Implemented error checking. If the file is not found, -1 is returned.