Fix bug in python output dir

Was passing incorrect output dir argument from Perl.