Fixed invalid python code
Removed code leading to duplicate send txs, making from_tx misbehave