Python Self Reference Class Problem