device_specific: Python 3 compatibility
Begin refactoring benchmark code