Python Self Reference Engine