Python test codes and libraries