diff --git a/python-api-src/library.cpp b/python-api-src/library.cpp
index 855f44713acbba8bc57f6e83f4d19f217ce93f97..38e5b8ebb7bd2d969083db9cb0cc877fe84a4697 100644
--- a/python-api-src/library.cpp
+++ b/python-api-src/library.cpp
@@ -26,6 +26,15 @@ PYBIND11_MODULE(library, m)
         .value("Protoss", sc2::Race::Protoss)
         .value("Random", sc2::Race::Random);
 
+    // Stupid anonymous enum, used as int everywhere. Best work-around I could think of.
+    py::module players = m.def_submodule("Players", "Constants for referring to players");
+    players.attr("Self")    = (int) Players::Self;
+    players.attr("Enemy")   = (int) Players::Enemy;
+    players.attr("Neutral") = (int) Players::Neutral;
+    players.attr("Ally")    = (int) Players::Ally;
+    players.attr("Size")    = (int) Players::Size; // These are probably used for
+    players.attr("None")    = (int) Players::None; // creating arrays of fixed length??
+
     /*
     TODO: These also needs to be defined