Python: remove a redundant macro