fixed getRNAOrientation code for python API