from com.inductiveautomation.ignition.common import Base64 bytes = Base64.decode(string)
No muss, no fuss.