Added automatic compatibility check to import appropriate modules accord...

...ing to the running python version