Use 'stat' package instead of literals for mkdir()

This is part of a series of changes to introduce Python3 support.

Change-Id: Ic988ad181d32357d82dfa554e70d8525118334c0
1 file changed