I've written a Python script, but running it is taking a lot longer than I had anticipated, and I've no obvious candidate for particuklar lines in the script taking up runtime. 
Is there anything I can put in my code to check how long its taking to run through each line?
Many thanks.
timeit is a standard module since python 2.3 take a look at the documentation for it.
Check running time per line in python