How to create a pattern like this using Python script or Modifiers
Here's a try with just modifiers. It's not exact, but it might get you started at least. This is with just the default cube:


click to enlarge

The modifier stack is as follows:


click to enlarge

You can adjust the "openness" of the pattern by tuning the scale and ratio of the remesh and decimate modifiers. The thickness of course comes from the wireframe modifier. 

You could optionally add a solidify modifier after the remesh if you want a little more density to the model as well. You would get something like the following:


click to enlarge

Here is the .blend file for your reference. (The solidify modifier from the second image is currently disabled for render and the viewport.)