A Very Strange Plant – What is It?

I purchased this cactus¬†in Spring and I hung it in my backyard.¬† I looked earlier this week and it’s blooming very strange looking brown flowers.

If anyone knows what this is, please let me know, I really would like to know what this plant is called.

A close up

Very strange looking flowers