Am a python beginner, hence like to understand how to implement the following logic in python3 please?
snippet of PERL code
#create output dir