Convert .obj files to b3dm in Python

I want to convert .obj file to 3dtiles including b3dm files using python. How i can do?