...the python 3.4 way if using python 3.4 or newer

Signed-off-by: Mattias Andrée <maandree@operamail.com>