refactoring of net and txscapy utils
Merge pull request #364 from kudrom/fix/utils

refactoring of net and txscapy utils