raise bad_alloc if PyObject_Malloc returns NULL
Merge pull request #3 from tonyroberts/master

raise bad_alloc if PyObject_Malloc returns NULL