Check count value as the TeamCity API isn't consistent across versions (when there are no builds, the count attribute may be absent, or have a zero value), and ignore pyc files.
Minor.
Correctly resolve usernames where the username on the VCS root differs from the TeamCity user.