Original User: mody
Hi Jamal
You should first create a connection file to each database.
Then try this:
arcpy.env.workspace = r'C:\Users\XXX\AppData\Roaming\ESRI\Desktop10.2\ArcCatalog'
ls = arcpy.ListFiles("*.sde")
Then you will have a list of all your databases.
For each one you should create a FGDB.
Then use arcpy.ListFeatureclasses to get a list of layers to copy.
For each one you should do Featureclass to Featureclass for each one.
If you have more complex data (relashenship, geometric network, etc) you will have to work harder.
Have fun
Mody