VMD 1.6 and later contain an embedded, fully-functional Python interpreter. The interpreter acts just like the Python command line: you can import your own modules and run them from with the text console of VMD. In addition, VMD provides a number of modules for loading molecules and controlling their display.
VMD currently uses Python version 2.2.