If you think it is python, here is a test program I wrote up that you could use to test.
The below code opens up to a max of 2000 files (and creates them in the process of doing that) with the name of deleteme*.txt. If it fails for any reason, it will print out how many files were successfully open. When it is done running, you can clean up the files by deleting the "deleteme*.txt" files it creates in the same folder you ran it in.
Before running this program, be sure to make a temp folder and then copy this program to that temp folder and run it from the temp folder.
Code:
openfiles = []
try:
for x in range(2000):
openfiles.append(open("deleteme" + str(x) + ".txt", "a+"))
except:
pass
print "I successfully got", len(openfiles), "files open!"
In linux, with a limit of 1024, I successfully was able to open 1021 files.
What is the number you get with this?