Python implementation of core commotion functions for Linux