Armature Woes

I’ve been working a script to create armatures and animate them with BVH data. When the armature is created, All the rolls are set to 0.0. However, I need the roll in respect to the world axis to be 0.0, not the local axis. Does anybody know a smart way to keep the bone’s rolls set to a world 0.0?