Python submit test

Fixed bugs in python queue wrapper.