Fix the FileSelector for py3