Tests do not call global cleanup for now
Python 3 compatibility: except syntax
Python 3 compatibility: map