Urgent help editing python self driving motorcycle code

Hi! This is the problem. I have taken https://github.com/ndrplz/self-driving-car/tree/master/project_4_advanced_lane_finding and done many hours of editing in order to get it into shape for practical robotic use. However, the big problem is that the road curvature and offset from the center of the lane values are always positive. Could you please help me make them negative if the road curves, for example, left, and positive if it curves right? Same for the offset within the lane. My self-driving motercycle needs to know which way it is drifting. The code that needs help is here. It is rather complicated and hard-if you have and questions at all PLEASE ask. I am trying to complete this project in less than a year and need help. THANK YOU SO MUCH!!!