Python implementation for aMule's EC