Python: P10 (ugly)