Fixed bug in the freebase_query.py and created accuracy.py