I have no idea what could be the problem here:
I have some modules from Biopython which I can import easily when using the interactive prompt or executing python scr
Here are a couple of possibilities:
sys.version and sys.prefix, and compare the result through apache and via the command line, to make sure that you're running from the same installation of python in both environments.import site before trying to import Biopython? Perhaps something is preventing site packages from being imported when you run through apache.