XPresso nodes like compare, rangemap, clamp etc have equivalents in Python, but you have to watch out for data type. XPresso is quite forgiving when connecting say real to string, but Python is more strict.
Also be aware that integer division gives integer result in Python eg
3 / 2 = 1
have to specify real eg
3.0 / 2 = 1.5
this can trip you up when using current frame as a value, and is due to C4D using 2.7 Python