Added evaluations

Added precision, recall, and f-measure to the python code for better
evaluation.