Python version syntax.
Make compatible with parted 2.3.