Convert python code to c online