To find out the type of file selected using FileManager in query tool, we use bitwise OR( | ) on two sets which is not working on python-2.6.9 version. Now we took list of elements instead of sets to fix the issue.