Stephen Flynn and Stephen Ghetins have both resigned their seats in the Commons after being elected to the Scottish Parliament.