Added gpu_lock.py and usage for python interface
Merge branch 'master' of https://github.com/TorontoDeepLearning/convnet