Print full error output when unable to create a resource/fence device
Added code to improve Python 2.6 compatability