Get ref to newly extruded bone

I am calling extrude_move to create a new bone and i want to select and do operations on it like rename and move.
I am kind of a novice to python so any help would be great.

Never mind. I figured out how to use bones.add