Added python3 compatibility using reduce from functools
Fixed sql vulnerability in SimilarManager filter_o
Merge branch 'fix-sql-vulnerability'