How to import obj with front and back material?

How to import a obj file which has front and back material using python script?