Add ShaFile.copy()

Provide a convenient copy method for ShaFiles.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Sort imports alphabetically.