removed more dupe code present in pyactiveresource