Minor fixes to the memory network python code for better scala integration
Minor fixes to the memory network python code for better scala integration


Former-commit-id: 66f3f3d5393d04bc6ea8e2e938f793f0cf6a7806
Former-commit-id: 6300a9d26c0ddf3fe1c648ee796a6664bfa04d4d
matt-gardner/deep_qa,DeNeutoy/deep_qa,matt-gardner/deep_qa,allenai/deep_qa,DeNeutoy/deep_qa,allenai/deep_qa