import bpy,os
for f in os.listdir('/path/to/use'):
bpy.ops.import_scene.obj(filepath=f)
bpy.ops.export_scene.obj(filepath=f,use_materials=False)