There is no way to turn that logic encapsulated by a script into its equivalent in model builder. Also consider this, python allows complex looping and logic structure as well an importing functionality from other modules, e.g. scipy, numpy, fiona etc... these are all modules/logic that model builder has no concept of.