change mode to octal for os.makedirs()

Partial implements: blueprint py33-support

Change-Id: I7a4307dfd526821e96b5c04ff636e650f20b753a