added BSD license to discovery.py source file