Could You rig in python?

Hay I am new to python and I was wondering if I could tell python to rig in blender. If not is there a easy way to import Maya files into blender with rigging? Thanks.

i already do. see my c3d import script. it creates a rig based on the datapoints of the mesh that was motion caputred.