Minor additions to py