diff --git a/io_export_after_effects.py b/io_export_after_effects.py
index 71bb5fc9de692fcc3b18ef7cbdfada390c59acb6..e5a26438d0cc39a88c6d8b468ba59369aac502fd 100644
--- a/io_export_after_effects.py
+++ b/io_export_after_effects.py
@@ -260,7 +260,7 @@ def write_jsx_file(file, data, selection, include_animation, include_active_cam,
     active_cam_name = ''
     if include_active_cam and data['active_cam_frames'] != []:
         # check if more that one active cam exist (true if active cams set by markers)
-        if len(data['active_cam_frames']) is 1:
+        if len(data['active_cam_frames']) == 1:
             name_ae = convert_name(data['active_cam_frames'][0].name)  # take name of the only active camera in scene
         else:
             name_ae = 'Active_Camera'
diff --git a/np_station/np_roto_move.py b/np_station/np_roto_move.py
index fdc849665cc67e9853e2c4dc71cdd98a61ddf08f..c1634454d3e066bbcebef425211848d34489b244 100644
--- a/np_station/np_roto_move.py
+++ b/np_station/np_roto_move.py
@@ -794,7 +794,8 @@ def DRAW_Overlay(self, context):
 
     walpha = translate_graphic(walpha, centerloc)
     wbeta_L = translate_graphic(wbeta_L, centerloc)
-    if flag is not 'RUNROTEND': wbeta_D = translate_graphic(wbeta_D, centerloc)
+    if flag != 'RUNROTEND':
+        wbeta_D = translate_graphic(wbeta_D, centerloc)
 
 
     np_print('rv3d', rv3d)
@@ -874,7 +875,7 @@ def DRAW_Overlay(self, context):
         bgl.glEnd()
 
 
-    if flag is not 'RUNROTEND':
+    if flag != 'RUNROTEND':
         # drawing of wbeta_D contours:
         bgl.glColor4f(1.0, 1.0, 1.0, 0.6)
         bgl.glLineWidth(1)