import platform

# -----------------------------------------------------------------------------
# Guess platform we are running on
def current_platform():
    machine = platform.machine()
    if machine == 'armv5tejl':
        return 'ev3'
    elif machine == 'armv6l':
        return 'brickpi'
    else:
        return 'unsupported'

if current_platform() == 'brickpi':
    from .brickpi import *
else:
    # Import ev3 by default, so that it is covered by documentation.
    from .ev3 import *

@@ -8,16 +8,198 @@
 platform
+%0Aimport sys%0A%0A# -----------------------------------------------------------------------------%0A%0Aif sys.version_info %3C (3,4):%0A    raise SystemError('Must be using Python 3.4 or higher')
 %0A%0A# ----
@@ -307,16 +307,17 @@
 ning on%0A
+%0A
 def curr
@@ -478,24 +478,24 @@
 '%0A    else:%0A
-
         retu
@@ -512,16 +512,97 @@
 orted'%0A%0A
+# -----------------------------------------------------------------------------%0A%0A
 if curre

Enforce the use of Python 3.4 or higher