Python and Ruby are just as bad as Perl for this. Python being the least fluent of the three for scripting.
If you want a proper language to support your scripting goals, then if you go right up to something like Ocaml or Haskell you'll skip all the pointless stringly-typed problems of perl/ruby/python.