Python script to pull named functions out of javascript files