You can use the scipy.constants module to convert between units. For example, to convert 1 Newton meter to Joules:
from scipy.constants import newton, meter, joule
force = 1.0 * newton
distance = 1.0 * meter
energy = force * distance # Energy in Joules
print(energy) # Output: 1.0 Joule