Python module for easy integration with phantomas